<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/19
 * Time: 14:36
 */
header("Content-type:text/html;charset=utf-8");
$fun = create_function('$a','echo $a."你好";');
var_dump($fun);
$fun("frank");

echo "<br>";
$fun2 = function($a){
    echo $a."你好";
};

$fun2('tom');


//字符与函数
//function foo(){
//    echo "我是foo";
//}
//
//$a = "foo";
//$a();//foo()


//字符与变量
//$a = "b";
//$b = "11";
//echo $$a;//$b